<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Initializes MaxDB and returns an resource for use with maxdb_real_connect</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.maxdb-init" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">maxdb_init</h1>
  <p class="verinfo">(PECL maxdb &gt;= 1.0)</p><p class="refpurpose"><span class="refname">maxdb_init</span> &mdash; <span class="dc-title">Initializes MaxDB and returns an resource for use with maxdb_real_connect</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.maxdb-init-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>maxdb_init</strong></span>
    ( <span class="methodparam">void</span>
   ) : <span class="type">resource</span></div>

  <p class="para rdfs-comment">
   Allocates or initializes a MaxDB resource suitable for
   <span class="function"><a href="maxdb_options.html" class="function">maxdb_options()</a></span> and <span class="function"><a href="maxdb_real_connect.html" class="function">maxdb_real_connect()</a></span>.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    Any subsequent calls to any maxdb function (except <span class="function"><a href="maxdb_options.html" class="function">maxdb_options()</a></span>)
    will fail until <span class="function"><a href="maxdb_real_connect.html" class="function">maxdb_real_connect()</a></span> was called.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.maxdb-init-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an resource.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.maxdb-init-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="maxdb_options.html" class="function" rel="rdfs-seeAlso">maxdb_options()</a> - Set options</span></li>
    <li class="member"><span class="function"><a href="maxdb_close.html" class="function" rel="rdfs-seeAlso">maxdb_close()</a> - Closes a previously opened database connection</span></li>
    <li class="member"><span class="function"><a href="maxdb_real_connect.html" class="function" rel="rdfs-seeAlso">maxdb_real_connect()</a> - Opens a connection to a MaxDB server</span></li>
    <li class="member"><span class="function"><a href="maxdb_connect.html" class="function" rel="rdfs-seeAlso">maxdb_connect()</a> - Open a new connection to the MaxDB server</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>